package creational.builder.director;

// 屏蔽复杂对象的建造过程
// 复用封装性良好
public class Client {
    public static void main(String[] args) {
        Director director = new Director(new MobikeBikeBuilder());
        Bike bike = director.create();
        System.out.println(bike.toString());

        director = new Director(new OfoBikeBuilder());
        bike = director.create();
        System.out.println(bike.toString());
    }
}
